CC=g++
CFLAGS=-c

all: stock_hist_and_cur_data stock_hist_data call_sell_list put_sell_list

call_sell_list: call_sell_list.o
	$(CC) call_sell_list.o -o call_sell_list

put_sell_list: put_sell_list.o
	$(CC) put_sell_list.o -o put_sell_list

stock_hist_data: stock_hist_data.o
	$(CC) stock_hist_data.o -o stock_hist_data

stock_hist_and_cur_data: stock_hist_and_cur_data.o
	$(CC) stock_hist_and_cur_data.o -o stock_hist_and_cur_data

call_sell_list.o: call_sell_list.cpp
	$(CC) $(CFLAGS) call_sell_list.cpp

put_sell_list.o: put_sell_list.cpp
	$(CC) $(CFLAGS) put_sell_list.cpp

stock_hist_data.o: stock_hist_data.cpp
	$(CC) $(CFLAGS) stock_hist_data.cpp

clean:
	rm -rf *o stock_hist_data sell_list call_sell_list put_sell_list

